<div id="resultCase" class="row" ng-cloak>
	<div class="col-md-8">
		<div class="page-header">
			<h2>
				<span class="glyphicon glyphicon-menu-hamburger"></span>用例：{{case.name}}
			</h2>
		</div>
		<h3>基本信息</h3>
		<h4>注释</h4>
		<div class="panel panel-default">
			<div class="panel-body">{{case.comment||'无'}}</div>
		</div>
		<h4>源码</h4>
		<pre ng-bind-html="code"></pre>
		<h3>执行日志</h3>
		<div class="panel panel-success" ng-repeat="c in cRL" id="log{{$index}}">
			<div class="panel-heading"><h4>测试日志</h4></div>
			<div  class="panel-body">
				<h4>User-Agent&nbsp;原文</h4>
				<kbd>{{c.rEnv.ua}}</kbd>
				<h4>测试环境信息</h4>
				<ul>
					<li>测试运行开始时间： {{c.cR.$overview.testingStartTime|date:'yyyy-MM-dd hh:mm:ss'}}</li>
					<li>消耗机器时间： {{c.cR.$overview.testingMachineTime|date:'mm:ss.sss'}}</li>
					<li>浏览器：{{c.rEnv.browser.name}}</li>
					<li>浏览器主版本: {{c.rEnv.browser.major}}</li>
					<li>操作系统: {{c.rEnv.os.name}}</li>
					<li>操作系统主版本: {{c.rEnv.os.version}}</li>
				</ul>
			</div>
			<table class="table table-condensed table-hover">
				<caption>执行过程（以下表格显示测试时具体的动作及触发时间）</caption>
				<thead>
					<tr>
						<th style="width:1em"></th>
						<th>指令说明</th>
						<th style="width:120px;">执行时间</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="l in c.cR.$executionLog[loop]">
						<td ng-show="l.line<1">
						</td>
						<td ng-hide="l.line<1" ng-click="showCode(l.line)" style="cursor:pointer">
							<i class="glyphicon glyphicon-eye-open"></i>
						</td>
						<td>{{l.body|logBody}}</td>
						<td>{{l.time|date:'hh:mm:ss.sss'}}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<div class="col-md-3 col-md-offset-1 hidden-xs" id="sideBar">
		<div class="page-header" style="border:none;">
			<h4>帮助说明</h4>
		</div>
		<div>
			<p>如果您需要再次执行本次用例，请点击下方按钮:</p>
			<p><a class="btn btn-default" target="_blank" href="/lemon-probe.zip" role="button">回放测试用例</a>
			</p>
			<p>快速链接
				<br/>
				<ol>
					<li><a target="_blank" href="http://www.lemonce.net">Lemonce 灵萌测官网</a></li>
					<li><a target="_blank" href="http://lemonce.com/">Lemonce服务官网</a></li>
				</ol>
			</p>
		</div>
	</div>
</div>
